package itsm.isperp.module.repository.solr;

import itsm.isperp.framework.data.domain.PageResponse;
import itsm.isperp.module.dto.solr.SolrIcdIncidentDTO;

import org.springframework.data.repository.NoRepositoryBean;
import org.springframework.data.solr.core.query.HighlightQuery;

/**
 * 
 * 
 * @author lizx
 * @date 2013-4-16
 */
@NoRepositoryBean
@DbConfigEntity(name = "icdIncident", hlfields = { "title", "description" })
public class SolrIcdIncidentRepository extends
		BaseSolrRepository<SolrIcdIncidentDTO> {
	/**
	 * 按查询条件返回查询结果
	 * 
	 * @param query
	 * @return 事件分页列表
	 */

	public PageResponse<SolrIcdIncidentDTO> searchSimilarIncident(
			HighlightQuery query) {

		return this.searchByKeyword(query);
	}
}
